package mysql.cs.command;

import mysql.Commond;

import java.io.ByteArrayOutputStream;
import java.io.IOException;

/**
 * 1              [01] COM_QUIT
 */
public class QuitCommand extends Commond {
    public QuitCommand(){
        setCommand((byte) 0x01);
    }

    @Override
    public void encode(byte[] data) {

    }

    @Override
    public byte[] decode() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        out.write(getCommand());
        return out.toByteArray();
    }
}
